package com.link.base.ext.autocfg.service;


import com.link.core.basic.service.BasicService;
import com.link.base.ext.autocfg.model.AutoCfgItemSub;

import java.util.List;

public interface AutoCfgItemSubService extends BasicService<AutoCfgItemSub> {

    /**
     * <p>根据父ID删除数据</p>
     *
     * @author yrf
     * @param record
     * @return
     */
    public int deleteByParentId(AutoCfgItemSub record);

    /**
     * <p>统一更新与该记录作为母版的记录</p>
     *
     * @author yrf
     * @param record
     * @throws Exception
     */
    public void updateLinkItemSub(AutoCfgItemSub record) throws Exception;

    /**
     * <p>批量增删改操作</p>
     *
     * @author yrf
     * @param list
     * @throws Exception
     */
    public void upsertAndDel(List<AutoCfgItemSub> list) throws Exception;
}
